<template>
    <div>
        <!-- 面包屑导航 -->
        <el-breadcrumb separator-class="el-icon-arrow-right">
            <el-breadcrumb-item :to="{ path: '/' }">首页</el-breadcrumb-item>
            <el-breadcrumb-item>权限管理</el-breadcrumb-item>
            <el-breadcrumb-item>权限列表</el-breadcrumb-item>
        </el-breadcrumb>
        <el-card class="box-card">
            <el-table :data="rightList" stripe border height="400">
                <el-table-column type="index">
                </el-table-column>
                <el-table-column prop="authName" label="权限名称">
                </el-table-column>
                <el-table-column prop="path" label="路径">
                </el-table-column>
                <el-table-column label="权限等级">
                    <template slot-scope="scope">
                        <el-button type="primary" size="mini" plain disabled v-if="scope.row.level==0">一级</el-button>
                        <el-button type="success" size="mini" plain disabled v-else-if="scope.row.level==1">二级</el-button>
                        <el-button type="warning" size="mini" plain disabled v-else>三级</el-button>
                    </template>
                </el-table-column>
            </el-table>
        </el-card>
    </div>
</template>
<script>
import mix from './Right-mixins.js'
export default {
  mixins: [mix]
}
</script>
<style lang="less" scoped>
</style>
